package foo.bar.blog.radeox;

import foo.bar.radeox.engine.BaseRenderEngine;
import foo.bar.blog.core.domain.Resource;
import foo.bar.blog.web.action.general.ResourceRetrievalActionBean;
import net.sourceforge.stripes.util.UrlBuilder;

import java.util.Locale;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class BlogSyntaxHelpExampleRenderEngine extends BlogRenderEngine {

    public BlogSyntaxHelpExampleRenderEngine(foo.bar.radeox.api.engine.context.InitialRenderContext initialRenderContext) {
        super(initialRenderContext);
    }

    public String includeResource(String name) {
        UrlBuilder urlBuilder = new UrlBuilder(Locale.getDefault(), "/theme/default/images/sampleForBlogSyntaxHelp.jpg", true);
        return "<img src='"+getContextPath()+urlBuilder.toString()+"'/>";
    }
    
}

